using UnityEngine;

public class ScaleUI : MonoBehaviour
{
	private RectTransform _mainPanel;

	private void Start()
	{
		_mainPanel = GetComponent<RectTransform>();
		int num = 1280;
		int num2 = 720;
		int num3 = num / 16 * 9;
		if (num3 <= num2)
		{
			num2 = num3;
		}
		_mainPanel.sizeDelta = new Vector2(num2, num);
	}
}
